package com.demo.springboot;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class UserDao {

    private Logger logger = LoggerFactory.getLogger("UserDao");

    public void log() {
        logger.debug("--------UserDao  Debug  Log------");
        logger.info("---------UserDao  Info  Log------");
        logger.warn("---------UserDao  Warn  Log------");
        logger.error("--------UserDao  Error  Log------");
    }

}
